// Decompiled by Jad v1.5.7g. Copyright 2000 Pavel Kouznetsov.
// Jad home page: http://www.geocities.com/SiliconValley/Bridge/8617/jad.html
// Decompiler options: packimports(3) fieldsfirst ansi 
// Source File Name:   GTSMinimalImpl.java

package com.sunwayhorizo.health.hl7.datatypes.common;

import com.sunwayhorizo.health.hl7.common.VersionInfo;
import com.sunwayhorizo.health.hl7.datatypes.ANY;
import com.sunwayhorizo.health.hl7.datatypes.BL;
import com.sunwayhorizo.health.hl7.datatypes.CS;
import com.sunwayhorizo.health.hl7.datatypes.IVL_TS;
import com.sunwayhorizo.health.hl7.datatypes.PIVL;
import com.sunwayhorizo.health.hl7.datatypes.PQ;

// Referenced classes of package oracle.apps.ctb.hl7.types.common:
//            PIVL_TSImpl, ANYImpl, BLImpl, CSImpl, 
//            GTSBase, IVL_TSImpl, NullFlavorImpl, PQImpl, 
//            STImpl, TYPEImpl

public class GTSMinimalImpl extends PIVL_TSImpl
{

    public static final String RCS_ID = "$Header: GTSMinimalImpl.java 115.7 2005/07/19 07:30:19 amchanda noship $";
    public static final boolean RCS_ID_RECORDED = VersionInfo.recordClassVersion("$Header: GTSMinimalImpl.java 115.7 2005/07/19 07:30:19 amchanda noship $", "oracle.apps.ctb.hl7.types.common");

    public static PIVL valueOf(String s)
    {
        return new GTSMinimalImpl(s);
    }

    protected GTSMinimalImpl(String s)
    {
        _literal = STImpl.valueOf(s);
        _dataType = TYPEImpl.GTS;
        _phase = IVL_TSImpl.nullIVL_TS(NullFlavorImpl.NA);
        _period = PQImpl.nullPQ(NullFlavorImpl.NA);
        _alignment = CSImpl.nullCS(NullFlavorImpl.NA);
        _institutionSpecifiedTime = BLImpl.nullBL(NullFlavorImpl.NA);
    }

    public BL equal(ANY any)
    {
        if(!(any instanceof GTSMinimalImpl))
            return BLImpl.FALSE;
        if(isNull().or(any.isNull()).isTrue())
        {
            return BLImpl.FALSE;
        } else
        {
            GTSMinimalImpl gtsminimalimpl = (GTSMinimalImpl)any;
            return literal().equal(gtsminimalimpl.literal());
        }
    }

    public IVL_TS phase()
    {
        throw ANYImpl.newUnsupportedException("GTS", "phase");
    }

    public PQ period()
    {
        throw ANYImpl.newUnsupportedException("GTS", "period");
    }

    public CS alignment()
    {
        throw ANYImpl.newUnsupportedException("GTS", "alignment");
    }

    public BL institutionSpecifiedTime()
    {
        throw ANYImpl.newUnsupportedException("GTS", "institutionSpecifiedTime");
    }

}
